package com.cl.pattern.visitor;

/**
 * CEO
 *
 * ConcreteVisitor：具体的访问者
 */
public class CEOVisitor implements Visitor {

    public void visit(Engineer engineer) {
        System.out.println("工程师: " + engineer.name + ", KPI: " + engineer.kpi);
    }


    public void visit(Manager manager) {
        System.out.println("经理: " + manager.name + ", KPI: " + manager.kpi +
                ", 新产品数量: " + manager.getProducts());
    }
}